<?php
declare (strict_types = 1);

namespace app\api\model;

/**
 * 课程模型
 */
class Source extends Base
{
    protected $autoWriteTimestamp = 'datetime';
    public static function getAllSource()
    {
        $data = Source::field('id,title')->select();
        return [
            'code' => 200,
            'message' => '信息获取成功',
            'data' => $data
        ];
    }
   
}